<?php

namespace App\Model;


use App\Model\BaseModel;

class Comment extends BaseModel
{
    //关联用户
    public function post(){
    	return $this->belongsTo('App\Model\Post');
    }

    public function user()
    {
        return $this->belongsTo('\App\Model\User', 'user_id', 'id');
    }
}
